package cn.iutils.edu.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.iutils.common.service.CrudService;
import cn.iutils.edu.dao.TypeConfigDao;
import cn.iutils.edu.entity.TypeConfig;

import java.util.ArrayList;

/**
* 数据配置 Service层
* @author iutils.cn
* @version 1.0
*/
@Service
@Transactional(readOnly = true)
public class TypeConfigService extends CrudService<TypeConfigDao, TypeConfig> {
    @Autowired
    private TypeConfigDao typeConfigDao;

    public ArrayList<TypeConfig> getModileTypeList(@Param("moduleName") String moduleName) {
         ArrayList<TypeConfig> list = new ArrayList<>();
         list = typeConfigDao.getModileTypeList(moduleName);
         return  list;
    }

}
